﻿using System;
using System.Data;

namespace msBsc.WebUi
{
    public partial class wfPageView : msBsc.Cls.BPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindControls(); 
                 
                loadGoodslist(this.Request.QueryString.Get("PN"));
            }
        }

        private void BindControls()
        {
            if (!IsPostBack)
            {
            }
        }
         

        private void loadGoodslist(string _strPageNo)
        {

            msBsc.WebUi.Code.PageHtmlGet ocart = new msBsc.WebUi.Code.PageHtmlGet();
            string strjsontem1 = ocart.GetPageJson(_strPageNo);
                this.ExecJScript(@" var _data= " + strjsontem1 + @" ; 
    jQuery.loadHtml('/Template/MallPage" + _strPageNo + @".html').done(function (_sRtHtml) {
        var tpl = HtmlUtil.htmlDecode(_sRtHtml);
        laytpl(tpl).render(_data, function (render) {
            $('html').empty().html(render);
        });
    }); 
            ");  
        }

         
    }
}